package org.jeecg.modules.car.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.entity.car.CarDerateDetails;
import org.jeecg.modules.car.entity.CarMerchant;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description: 商家管理
 * @Author: jeecg-boot
 * @Date:   2020-10-17
 * @Version: V1.0
 */
public interface ICarMerchantService extends IService<CarMerchant> {
    List<CarMerchant> findPage(Page<CarMerchant> page, CarMerchant carMerchant);

    Result merchantPay(CarMerchant carMerchant, BigDecimal payAmount, BigDecimal actualAmount, String remarks, String payType,String payMode);

    CarMerchant getUserByName(String username);

    void updateRemainAmount(CarMerchant carMerchant);

    List<CarMerchant> getMerchantByParkList(String parkId);

    int updatePwd(String id,String newPwd,String remarks);

    CarMerchant getSelfById(String merchantId);

    void clearAllDonateAmount();


    Result<String> addAllDonateAmount();

    Result merchantDonateRecharge(CarMerchant carMerchant, double payAmount, String payMode, String remarks);

    List<CarDerateDetails> findDiscountListByMerChantById(Page<CarDerateDetails> page, CarMerchant carMerchant);
}
